package com.liusy.taskengine.resultmodel;

import java.nio.channels.FileChannel;
import java.sql.Connection;

import com.liusy.taskengine.TaskManager;

/**
结果处理
* 
* @author liusy 2013-04-16
*/
public interface IResultModel {
	
	void run();
	
	void start(TaskManager tm);
	
	void ResultHandle(ComparResult comparResult);

	void DbResultHandle(Connection conn, ComparResult comparResult);
	
	void addComparResults(ComparResult comparResult);
	
	void interrupt();

	void FileResultHandle(FileChannel writer, ComparResult comparResult);
	
	int getResultCount();
	
	String FileResultString(ComparResult comparResult);
	
	String DbResultString(ComparResult comparResult);
	
	void resultFinishClear();
}
